# coding:utf-8


if __name__ == '__main__':
    tokens = [{"key": "猴子在"},
              {"key": "苹果树下"},
              {"key": "打架"}]
    result = []
    for token in tokens:
        result.append(token["key"])
    print("".join(result))


def test():
    install = {
        "w": {
              "platform": "Window",
              "desc": "请下载 Windows 安装包安装：https://www.python.org/downloads/windows/"
        },
        "l": {
              "platform": "Linux",
              "desc": "请下载 Linux 的 Python 源码安装：https://www.python.org/downloads/source/",
        },
        "m": {
              "platform": "MacOS",
              "desc": "请下载 Mac 的安装包：https://www.python.org/downloads/macos/，或者使用 brew install python 安装",
        }
      }

    print("Python 可以在全平台上安装，例如：")
    for p in install:
        print("* {}: {} 系统".format(p, install[p]['platform']))

    while True:
        ret = input("请选择安装平台[w/l/m]：")
        target = install.get(ret)
        print('target ==', target)
        if target is None:
              print("不支持的平台")
        else:
              print("安装平台：{}".format(target['platform']))
              print("安装说明：{}".format(target['desc']))
              break

# if __name__ == '__main__':
#       test()



